package com.yihaodian.index;

import com.google.inject.AbstractModule;
import com.yihaodian.index.data.IndexDataService;
import com.yihaodian.index.data.LocalIndexDataService;
import com.yihaodian.search.broker.shard.ShardIndexService;

/**
 * index Service, IndexMetaService
 * 
 */
public class IndexModule extends AbstractModule {

	@Override
	protected void configure() {
		bind(IndexDataService.class).to(LocalIndexDataService.class)
				.asEagerSingleton();
		bind(ShardIndexService.class).to(LocalIndexService.class)
				.asEagerSingleton();
	}

}
